home *** CD-ROM | disk | FTP | other *** search
/ NOVA - For the NeXT Workstation / NOVA - For the NeXT Workstation.iso / Documents / NeXTAnswers / postscript.481 < prev    next >
Text File  |  1992-02-06  |  4KB  |  93 lines

  1. {\rtf0\ansi{\fonttbl\f1\fnil Times-Roman;\f0\fswiss Helvetica;}
  2. \paperw13040
  3. \paperh10800
  4. \margl120
  5. \margr120
  6. \pard\tx620\tx1240\tx1860\tx2480\tx3100\tx3720\tx4340\tx4980\tx5600\tx6220\f1\b0\i0\ul0\fs28 postscript eps ps\
  7. \
  8. Q: What is encapsulated PostScript?  \
  9. \
  10. A:  An Encapsulated PostScript file is a standard PostScript file which conforms to specific conventions and is well-behaved. Well-behaved meaning that and EPS file returns the including environment to its original state upon completion. EPS files may also include a bitmap screen image at the beginning, enabling applications that don't understand PostScript commands, such as word processors, to include and display the illustration on the screen and subsequently print it.\
  11. \
  12. For more information see NextAnswer postscript.404. Also, there is documentation available from Adobe Systems on the subjects of EPS files, and Document Structuring Conventions.\
  13. \
  14. Q:  How do I convert an ordinary PS file into an EPS file?  \
  15. \
  16. A: There's usually more to it than just changing the extension from ".ps" to  ".eps", although you can give that a try.   (Save your document before trying!)  [Note: NextAnswer postscript.404 suggests a method of testing.]\
  17. \
  18. Several things must be true for a PostScript file to be EPS:\
  19. \
  20. (1)  The original file must be "conforming" PostScript, as evidenced by the following line at the beginning of the file:\
  21. \
  22.     %!PS-Adobe-2.0\
  23. \
  24. (Merely adding this line to a file that isn't conforming PostScript won't necessarily make it conform magically, of course.  It also depends on the rest of the contents.)  For EPS, this line should be changed to:\
  25. \
  26.     %!PS-Adobe-2.0 EPSF-2.0\
  27. \
  28. This describes a document that meets version 2.0 document structure guidelines as well as version 2.0 EPSF document structure guidelines.\
  29. \
  30. (2)  It must have a valid bounding box comment in the header, of the form:\
  31. \
  32.     %%BoundingBox: llx lly urx ury\
  33. \
  34. Note these values do not describe an origin and a pair of extents (NeXT style rect description), but rather lower left x and y and upper right x and y.  Here's a typical header of an EPS file (notice that the arguments to the bounding box are floating point numbers):\
  35. \
  36.     %!PS-Adobe-2.0 EPSF-2.0\
  37.     %%Creator:Scan\
  38.     %%Title:Scanned_Image.eps\
  39.     %%Origin:0 720\
  40.     %%BoundingBox: 0 0 322 467\
  41.     %%EndComments\
  42. \
  43. (3) These operators are restricted from use in EPSF (and from conforming documents in general ):\
  44. \
  45.     banddevice\
  46.     copypage\
  47.     erasepage\
  48.     exitserver\
  49.     framedevice\
  50.     grestoreforall\
  51.     initclip\
  52.     initgraphics\
  53.     initmatrix\
  54.     note\
  55.     nulldevice\
  56.     quit\
  57.     renderbands\
  58.     setdevice\
  59.     setmatrix\
  60.     setpageparms\
  61.     setescreen\
  62.     settransfer\
  63.     \
  64. (4) An EPS document should not contain multiple pages, as the format's intention is a portable representation of a single graphic for use by another program, one that might not understand PostScript.\
  65. \
  66. (5) Because of this, the format also defines ways of including a bitmap representation for display by non-PS applications.  For apps that don't use this information, or EPS files that don't contain a graphic, these comments:\
  67.     \
  68.     %%Creator:\
  69.     %%Title:\
  70.     %%CreationDate:\
  71. \
  72. can be used to provide identifying information for the file if it is not imaged but represented by its bounding box size on the screen (like WriteNow's Hide Graphics mode).  These comments are automatically filled in the Appkit's printing methods.\
  73. \
  74. This comment:\
  75. \
  76.     %%DocumentFonts:\
  77. \
  78. makes note of fonts used by the graphic which will be needed at imaging time by the application that wants to image that graphic.\
  79. \
  80. This comment:\
  81. \
  82.     %%DocumentNeededFonts:\
  83. \
  84. is similar, but the fonts are not contained in the file in question and will have to be found as resources by the code that is running the interpreter.  Both/either of the comments can be very important to EPS files that want to be included in other documents and print correctly, especially in a multi-font environment.  \
  85. \
  86. \
  87. QA481\
  88. \
  89. Valid for 1.0\
  90. Valid for 2.0\
  91. \
  92.  
  93.